﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;


namespace FileRenamer
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnRename_Click(object sender, EventArgs e)
        {
            DirectoryInfo DI = new DirectoryInfo(txtPath.Text);
            foreach (FileInfo FI in DI.GetFiles())
            {
                FI.MoveTo(FI.FullName.ToLower());
            }
        }

    }
}
